<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		function Tank(x,y,pic,speed){
			this.x=x;
			this.y=y;
			this.pic=pic;
			this.speed=speed;
			this.forward=function(){
				this.x=this.x+this.speed;
			}
			var e=this.e=document.createElement("img");
			var s=this.s=this.e.style;
			
			e.src=pic;
			s.position="absolute";
			s.left=x+"px";
			s.top=y+"px";
			document.body.appendChild(e);
		}
		window.onload=function(){
			for(var i=0;i<10;i++){
				new Tank(Math.random()*1000,Math.random()*600,"images/2.png",10)
			}
		}
	</script>
</html>
